package com.qingchi.web.controller.social;

import com.socialuni.social.api.HugApi;
import com.socialuni.social.model.QO.hug.HugAddVO;
import com.socialuni.social.model.common.ResultRO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;

@RestController
public class HugController implements HugApi {
    @Resource
    HugApi hugApi;

    @Override
    public ResultRO<Object> addHug(@RequestBody @Valid @NotNull HugAddVO addVO) {
        return hugApi.addHug(addVO);
    }
}